package entity

import "hotstuffImpl/crypto"

// Block 存储的区块的内部信息
type Block struct {
	ParentHash Hash
	Cmds       []Command
	Qc         crypto.QuorumSig

	// 自身的hash值
	Hash Hash
}

// Command 发送的命令
type Command string
type Hash [32]byte
type MessageType int

type Replica struct {
	ID int
}

const (
	NEW_VIEW = iota
	PREPARE
	PRE_COMMIT
	COMMIT
	DECIDE
)
